/*
 * @Author: your name
 * @Date: 2022-03-31 15:11:47
 * @LastEditTime: 2022-05-29 23:38:50
 * @LastEditors: YNT 2501512800@qq.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \22-03-19 智慧社区\pages\activity\activityList\components\article\index.js
 */
// pages/activity/activityList/components/article.js
import dayjs from '../../../../utils/dayjs'
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    info: {
      type: Object,
      // observer: function (newValue) {
      //   newValue.create_time = dayjs(newValue.create_time).format(
      //     'YYYY-MM-DD HH:mm'
      //   )
      //   this.setData({
      //     info: newValue,
      //   })
      // },
    },
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    check: function (event) {
      let id = event.currentTarget.dataset.id
      this.triggerEvent('checkDetail', id)
    },
  },
})
